package com.zj.HJ;

import java.util.Scanner;

public class HJ21 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        System.out.println(getRes(num));
    }

    public static String getRes(String str) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            if (Character.isLowerCase(ch)) {
                if (ch >= 'a' && ch <= 'c') {
                    sb.append('2');
                } else if (ch >= 'd' && ch <= 'f') {
                    sb.append('3');
                } else if (ch >= 'g' && ch <= 'i') {
                    sb.append('4');
                } else if (ch >= 'j' && ch <= 'l') {
                    sb.append('5');
                } else if (ch >= 'm' && ch <= 'o') {
                    sb.append('6');
                } else if (ch >= 'p' && ch <= 's') {
                    sb.append('7');
                } else if (ch >= 't' && ch <= 'v') {
                    sb.append('8');
                } else if (ch >= 'w' && ch <= 'z') {
                    sb.append('9');
                }
            } else if (Character.isUpperCase(ch)) {
                char ch2 = Character.toLowerCase(ch);
                if (ch2 == 'z') {
                    sb.append('a');
                } else {
                    sb.append((char) (ch2 + 1));
                }
            } else {
                sb.append(ch);
            }
        }
        return sb.toString();
    }
}
